package cn.wolfcode.crm.service;

import cn.wolfcode.crm.domain.PurchaseOrder;
import cn.wolfcode.crm.query.PageResult;
import cn.wolfcode.crm.query.QueryObject;

import java.util.List;

public interface IPurchaseOrderService {

    void insert(PurchaseOrder entity);

    void delete(Long id);

    void update(PurchaseOrder entity);

    PurchaseOrder get(Long id);

    List<PurchaseOrder> list();

    /**
     * 商品分类分页查询
     * @param qo 查询条件
     * @return
     */
    PageResult query(QueryObject qo);

    /**
     * 审核采购单 入库
     * @param id
     */
    void audit(Long id);
}
